package Connector.Processor;

import Connector.Request;
import Connector.Response;

import java.io.IOException;

// 处理request和response，返回静态资源
public class StaticProcessor {

    public void process(Request request, Response response){
        System.out.println("Processor is working...");

        try {
            System.out.println("Processor is calling Response...");
            response.sendStaticResource();
        } catch (IOException e) {
            e.printStackTrace();
        }
    }
}
